package com.dbexposer.db.info;

public class DBEntityInfo {

	private Table table;
	
	private boolean allowCreate;
	private boolean allowRetrieve;
	private boolean allowUpdate;
	private boolean allowDelete;

	public DBEntityInfo(org.apache.ddlutils.model.Table table) {
		this.table = new Table(table);
	}

	/**
	 * @return
	 */
	public String getCatalog() {
		return table.getCatalog();
	}

	/**
	 * @return
	 */
	public Column[] getColumns() {
		return table.getColumns();
	}

	/**
	 * @return
	 */
	public String getDescription() {
		return table.getDescription();
	}

	/**
	 * @return
	 */
	public String getName() {
		return table.getName();
	}

	/**
	 * @return
	 */
	public String getSchema() {
		return table.getSchema();
	}

	/**
	 * @return
	 */
	public String getType() {
		return table.getType();
	}

	public boolean isAllowCreate() {
		return allowCreate;
	}

	public void setAllowCreate(boolean allowCreate) {
		this.allowCreate = allowCreate;
	}

	public boolean isAllowRetrieve() {
		return allowRetrieve;
	}

	public void setAllowRetrieve(boolean allowRetrieve) {
		this.allowRetrieve = allowRetrieve;
	}

	public boolean isAllowUpdate() {
		return allowUpdate;
	}

	public void setAllowUpdate(boolean allowUpdate) {
		this.allowUpdate = allowUpdate;
	}

	public boolean isAllowDelete() {
		return allowDelete;
	}

	public void setAllowDelete(boolean allowDelete) {
		this.allowDelete = allowDelete;
	}

	public Table getTable() {
		return table;
	}

}
